package FastJosnTest.UserToJson;

import com.alibaba.fastjson.annotation.JSONField;

public class User {
    private String id;
    private int num;
    private int hour;
    @JSONField(format = "MM-dd")
    private String date;

    public void set(String id, int num, int hour, String date) {
        this.id = id;
        this.num = num;
        this.hour = hour;
        this.date = date;
    }

    @Override
    public String toString() {
        return id+"\t"+date+"\t"+num;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
